import {  useState } from 'react';
import style from './index.module.scss';
// import {useNavigate} from 'react-router-dom'
const LoginUi = (props) => {
    const {isways,change} = props
    return (
        <div className={style.box}  >
            <div 
            className={isways?style.closdicon:style.openicon} 
            onClick={change}
            ></div>
        </div>
    )
}


export default function Login(){
    const [ways,setways] = useState(false)


    
    return (
        <LoginUi 
        isways={ways} 
        change={
            ()=>{
            setways(true)
            
            
            }
        }/>
    )
}